/*

 */
package com.insigma.business.gateway.api.impl;

import com.insigma.business.gateway.api.ApiServiceCallerService;
import com.insigma.business.gateway.entity.ApiServiceCallerDO;
import com.insigma.business.qrcode.soldier.dao.ApiServiceCallerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("apiServiceCallerService")
public class ApiServiceCallerServiceImpl implements ApiServiceCallerService {

    @Autowired(required = false)
    private ApiServiceCallerDao apiServiceCallerDao;

    
    @Override
    public List<ApiServiceCallerDO> listEnabledApiServiceCaller() {
        return apiServiceCallerDao.listEnabledApiServiceCaller();
    }

    
    @Override
    public List<ApiServiceCallerDO> listApiServiceCallerByGwType(final String gatewayType) {
        return apiServiceCallerDao.listApiServiceCallerByGwType(gatewayType);
    }

    
    @Override
    public ApiServiceCallerDO getByCons(final String productionAppCode, final String serviceCode) {
        return apiServiceCallerDao.getByCons(productionAppCode, serviceCode);
    }

}
